package com.wei.frame.model;

import androidx.annotation.Nullable;

import com.wei.frame.bean.BaseBean;
import com.wei.frame.bean.NewsBean;
import com.wei.frame.contract.SplashContract;
import com.wei.frame.net.RetrofitManager;

import java.util.List;

import javax.inject.Inject;

import io.reactivex.rxjava3.core.Single;

/**
 * 作者：赵若位
 * 时间：2021/7/3 16:46
 * 功能：
 */
public class SplashModel implements SplashContract.Model {

    @Inject
    RetrofitManager mManager;

    @Inject
    public SplashModel() {

    }

    @Override
    public Single<BaseBean<List<NewsBean>>> getNewsData(@Nullable String type) {
        return mManager.getApiService().getNewsData(type);
    }

    @Override
    public void onDestroy() {

    }
}
